<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex myWallet_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between myWallet_fd0_0'>
					<view class='flex flex-wrap align-center myWallet_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  myWallet_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='myWallet_fd0_0_c1_c0'>我的钱包</text>
					</view>
					<view class='flex align-center justify-end myWallet_fd0_0_c0'>
						<!-- <text class='myWallet_fd0_0_c2_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/wode/accountNumber/accountNumber`">绑定提现账户</text> -->
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myWallet_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch myWallet_fd1_0'>
					<view class='flex flex-wrap align-center justify-between'>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
							<view class='flex flex-wrap align-center flex-sub'>
								<image class='myWallet_fd1_0_c0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"165.png"'>
								</image>
								<text class='flex-sub myWallet_fd1_0_c0_c0_c0_c1'>可提现收益（元）</text>
								<view class='flex flex-wrap align-center justify-center myWallet_fd1_0_c0_c0_c0_c2'
									@tap.stop="handleJumpDiy" data-type="navigateTo"
									:data-url="`/pages/wode/immediateWithdrawal/immediateWithdrawal?type=2`">
									<image class='myWallet_fd1_0_c0_c0_c0_c2_c0' mode="aspectFit"
										:src='STATIC_URL+"166.png"'></image>
									<text class='myWallet_fd1_0_c0_c0_c0_c2_c1'>提现</text>
								</view>
							</view>
							<text class='myWallet_fd1_0_c0_c0_c1'>{{moneyData.user_money}}</text>
						</view>
					</view>
					<view class='flex flex-wrap align-center justify-between myWallet_fd1_0_c1'>
						<view class='flex flex-direction flex-wrap align-center'>
							<text class='myWallet_fd1_0_c1_c0_c0'>本月收益(元)</text>
							<text class='myWallet_fd1_0_c1_c0_c1'>{{moneyData.benyueshouyi}}</text>
						</view>
						<view class='flex flex-direction flex-wrap align-center'>
							<text class='myWallet_fd1_0_c1_c0_c0'>上月收益(元)</text>
							<text class='myWallet_fd1_0_c1_c0_c1'>{{moneyData.shangyueshouyi}}</text>
						</view>
						<view class='flex flex-direction flex-wrap align-center'>
							<text class='myWallet_fd1_0_c1_c0_c0'>累计收益(元)</text>
							<text class='myWallet_fd1_0_c1_c0_c1'>{{moneyData.total_revenue_money}}</text>
						</view>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myWallet_flex_2">
				<view class='flex flex-wrap align-center myWallet_fd2_0'>
					<view class='flex flex-wrap align-center myWallet_fd2_0_c0'>
					</view>
					<text class='myWallet_fd2_0_c1'>近30天记录</text>
					<view class='flex flex-wrap align-center myWallet_fd2_0_c2' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/wode/balanceDetails/balanceDetails`">
						<text class='myWallet_fd2_0_c2_c0'>查看全部</text>
						<image class='myWallet_fd2_0_c2_c1' mode="aspectFit" :src='STATIC_URL+"59.png"'></image>
					</view>
				</view>
				<template v-for='(item,key0) in detailList'>
					<view class='flex flex-direction flex-wrap align-stretch myWallet_fd2_1' :key='key0'>
						<view class='flex flex-wrap align-center myWallet_fd2_1_c0'>
							<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
								<text class='myWallet_fd2_1_c0_c0_c0'>{{item.remark}}</text>
								<text class='myWallet_fd2_1_c0_c0_c1'>{{item.create_time}}</text>
							</view>
							<text class='myWallet_fd2_1_c0_c1'
								v-if=" item.money_type=='2'">{{item.change_money}}</text><text
								class='myWallet_fd2_1_c0_c1_1' v-if=" item.money_type=='1'">{{item.change_money}}</text>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"moneyData": {
					"aid": "",
					"user_money": "",
					"total_revenue_money": "",
					"score": "",
					"commission": "",
					"total_order_commission_money": "",
					"withdrawal_money": "",
					"share_money": "",
					"create_time": "",
					"user_id": "",
					"benyueshouyi": "",
					"shangyueshouyi": ""
				},
				"detailList": []
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getMoneyFunc()
			this.getDetailFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.getMoneyFunc()
			this.getDetailFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取钱包金额
			async getMoneyFunc() {
				//请求方法
				//数据验证

				let datamoneyData = await this.$api.get(global.apiUrls.post636d04052bb00, {

				});

				if (datamoneyData.data.code != 1) {
					this.$message.info(datamoneyData.data.msg);
					return
				}
				let infomoneyData = datamoneyData.data;
				this.moneyData = infomoneyData.data

			},
			//获取明细信息
			getDetailFunc() {
				this.minixPagingListsApi = global.apiUrls.post636dfee37deef;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					change_type: '0'
				}
				this.listData = [];
				this.detailList = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(255, 255, 255, 1);
		background-size: 100% auto;
	}

	.myWallet_flex_0 {
		background: rgba(255, 255, 255, 1);
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.myWallet_fd0_0_c2_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
	}

	.myWallet_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.myWallet_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: rgba(51, 51, 51, 1);
		font-weight: 500;
	}

	.myWallet_fd0_0_c0 {
		width: 200rpx;
		height: 88rpx;
	}

	.myWallet_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.myWallet_flex_1 {
		padding: 40rpx 24rpx 0rpx 24rpx;
	}

	.myWallet_fd1_0_c1_c0_c1 {
		color: #FFFFFF;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 40rpx;
	}

	.myWallet_fd1_0_c1_c0_c0 {
		color: #FFFFFF;
		font-size: 24rpx;
		font-weight: 500;
		line-height: 33rpx;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.myWallet_fd1_0_c1 {
		margin: 52rpx 0rpx 0rpx 0rpx;
	}

	.myWallet_fd1_0_c0_c0_c1 {
		color: #FFFFFF;
		font-size: 48rpx;
		font-weight: 700;
		line-height: 57rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
	}

	.myWallet_fd1_0_c0_c0_c0_c2_c1 {
		color: #FFFFFF;
		font-size: 24rpx;
		font-weight: 500;
		line-height: 33rpx;
		margin: 0rpx 0rpx 0rpx 20rpx;
	}

	.myWallet_fd1_0_c0_c0_c0_c2_c0 {
		width: 24rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.myWallet_fd1_0_c0_c0_c0_c2 {
		border: 1px solid #FFFFFF;
		border-radius: 28rpx 28rpx 28rpx 28rpx;
		width: 180rpx;
		height: 56rpx;
	}

	.myWallet_fd1_0_c0_c0_c0_c1 {
		color: #FFFFFF;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.myWallet_fd1_0_c0_c0_c0_c0 {
		width: 36rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.myWallet_fd1_0 {
		background: var(--benbenbgColor0);
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		box-shadow: 0rpx 3rpx 20rpx rgba(0, 0, 0, 0.06);
		padding: 52rpx 40rpx 44rpx 40rpx;
	}

	.myWallet_flex_2 {
		padding: 40rpx 24rpx 0rpx 24rpx;
	}

	.myWallet_fd2_1_c0_c1_1 {
		font-size: 32rpx;
		font-weight: 600;
		color: rgba(255, 80, 80, 1);
		line-height: 40rpx;
	}

	.myWallet_fd2_1_c0_c1 {
		font-size: 32rpx;
		font-weight: 600;
		color: rgba(51, 51, 51, 1);
		line-height: 40rpx;
	}

	.myWallet_fd2_1_c0_c0_c1 {
		color: #BFBFBF;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 34rpx;
	}

	.myWallet_fd2_1_c0_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 38rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.myWallet_fd2_1_c0 {
		background: #FFFFFF;
	}

	.myWallet_fd2_1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.myWallet_fd2_0_c2_c1 {
		width: 12rpx;
		height: 22rpx;
	}

	.myWallet_fd2_0_c2_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		margin: 0rpx 12rpx 0rpx 0rpx;
	}

	.myWallet_fd2_0_c2 {
		margin: 0rpx 0rpx 0rpx auto;
	}

	.myWallet_fd2_0_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
	}

	.myWallet_fd2_0_c0 {
		background: #3090FF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		width: 8rpx;
		height: 34rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.myWallet_fd2_0 {
		margin: 0rpx 0rpx 8rpx 0rpx;
	}
</style>